<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

<ui:composition template="/WEB-INF/adicional/templates/templateHome.xhtml">

	<ui:define name="tituloPagina">
		Alterar Emails
	</ui:define>
	
	<ui:define name="conteudoCabecalho">
		
		<script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/resources/js/clinica/alterarEmailFormulario.js">
		</script>
		
		<script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/resources/js/clinica/clinica.js">
		</script>
		
	</ui:define>
	
	<ui:define name="conteudoCentro">
		
		<h:form id="formularioAlterarEmail">
			
			<div>
				<p:messages showSummary="true" showDetail="true" closable="true"></p:messages>
			</div>
			
			<div class="ui-messages-error ui-corner-all campo_invisivel" id="containerErro">
					
					
			</div>
			
			<div>
				<h:outputText value="e-Mail da Clinica: " for="emailClinica"/>
				<h:inputText value="#{clinica.emailClinicaAlt}" id="emailClinica" maxlength="100" label="Email da Clinica" binding="#{clinica.campoEmailClinicaAlt}"/>
			</div>
			
			<div>
				<p:commandButton action="#{clinica.alterarEmail}" value="Enviar" onclick="return validarFormularioEmailAlt();" 
				update="@form"></p:commandButton>
				
				<p:commandButton action="#{clinica.limparFormularioAlterarEmail}" value="Limpar" 
				onclick="return limparFormularioEmailAlt();" update="@form" immediate="true"></p:commandButton>
				
			</div>
		
		</h:form>
	
	</ui:define>
	
</ui:composition>
</html>